#include <EEPROM.h>

String sID = NULL;

void writeID(char* sID) {
  for (int i=0; i<6; i++) {
    EEPROM.write(i,sID[i]);
  }
}

String getEEPROMID() {
  if (sID == NULL) {
    uint8_t eepromHeader[7] = {0,0,0,0,0,0,0};
    for (int i=0; i<6; i++) {
      eepromHeader[i] = EEPROM.read(i);
    }
    sID = String((char*)eepromHeader);
  } 
  return sID;    
}


